package com.atjava.nebula.core.exception.bean;

/**
 * 解析expinfo.xml得到的异常Bean类
 */
public class ExceptionInfo extends BaseDTO {
	static final long serialVersionUID = 5853337547949414866L;

	public static boolean isExpDebug = false ;
	
	/**
	 * 用于国际化的信息代码
	 */
	private String messageCode = null;

	/**
	 * 信息代码messageCode是否加上一个附加的指示符
	 */
	private boolean context = false;

	/**
	 * 日志记录方式
	 */
	private String loggingType = null;

	/**
	 * 异常的跳转
	 */
	private String forwardURL = null;

	public ExceptionInfo(String messageCode, boolean context, String loggingType, String forwardURL) {
		this.messageCode = messageCode;
		this.context = context;
		this.loggingType = loggingType;
		this.forwardURL = forwardURL;
	}

	public String getForwardURL() {
		return forwardURL;
	}

	public String getLoggingType() {
		return loggingType;
	}

	public String getMessageCode() {
		return messageCode;
	}

	public void setMessageCode(String messageCode) {
		this.messageCode = messageCode;
	}

	public boolean isContext() {
		return context;
	}

	public void setContext(boolean context) {
		this.context = context;
	}

	public void setForwardURL(String forwardURL) {
		this.forwardURL = forwardURL;
	}

	public void setLoggingType(String loggingType) {
		this.loggingType = loggingType;
	}
}